window.onload = function() {
	var pics = document.getElementsByClassName("pic");
	for(var i = 0; i < pics.length; i++) {
		var randomLeft = parseInt(Math.random() * 30 + i % (pics.length / 2) * 120);
		var randomTop = parseInt(Math.random() * 100 + i / pics.length / 2 * 450);
		var randomRotate = parseInt(Math.random() * 25 - 10);
		$(pics[i]).css({
			"top": randomTop + "px",
			"left": randomLeft + "px",
			
			"-webkit-transform": "rotate(" + randomRotate + ")",
			"-moz-transform": "rotate(" + randomRotate + ")",
			"transform": "rotate(" + randomRotate + ")"
		});
	}
}